package com.example.rocketmqspringbootdemo.pojo;

import org.springframework.stereotype.Repository;

@Repository
public class User {
    private String userName;
    private int userAge;

    public User(){
    }

    public User(String userName,int age) {
        this.userName = userName;
        this.userAge=age;
    }

    public String getUserName() {
        return userName;
    }

    public User setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public int getUserAge() {
        return userAge;
    }

    public User setUserAge(int userAge) {
        this.userAge = userAge;
        return this;
    }

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                ", userAge=" + userAge +
                '}';
    }
}
